package com.wowo.ffms.service;

import com.wowo.ffms.dao.AccountDao;
import com.wowo.ffms.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;

import java.io.IOException;

public class AccountService {
    SqlSession sqlSession;
    AccountDao accountDao;
    public void init() throws IOException {
        SqlSessionFactory sqlSessionFactory = MybatisUtil.getSqlSessionFactory();
        SqlSession sqlSession = sqlSessionFactory.openSession();
        accountDao = sqlSession.getMapper(AccountDao.class);
    }
}
